cmake_minimum_required(VERSION 3.0)

project(start_vision)

set(CMAKE_CXX_FLAGS "-O2")

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)

find_package(OpenCV REQUIRED)

file(GLOB EXEC_FILES "${CMAKE_SOURCE_DIR}/sources/*.cpp")

set(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/build)

add_executable(start_vision ${EXEC_FILES})

include_directories(${OpenCV_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR}/sources ${CMAKE_SOURCE_DIR}/sources/headers) # Not needed for CMake >= 2.8.11
target_link_libraries(start_vision ${OpenCV_LIBS} gxiapi.so -lpthread -lm)
